<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>输出用户输入的信息</title>
</head>

<body>
    <script type="text/javascript">
        var msg = prompt("请输入您的信息");
        document.write(msg);
    </script>
</body>

</html>